package com.legendframework.core.cmd.paramer.converter;

import com.legendframework.core.ioc.BeanInstanceSuccessHandle;
import com.legendframework.core.AbstractLegendPlugin;

public class ConverterInstanceSuccessHandle implements BeanInstanceSuccessHandle {

    @Override
    public void successHandle(String beanName, Object bean, AbstractLegendPlugin plugin) {
        if (ParamerConverter.class.isAssignableFrom(bean.getClass())) {
            plugin.getStore().getCommandManagerStore().addParamerConverter((ParamerConverter) bean);
        }
    }
}
